<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      template="/web/layout/arearestrita.xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 
	
	<ui:define name="bodyPrincipal">
			<p:panel style="border-width:0" id="panelAreaRestritaLoteDados">
				<f:facet name="header">
					<h:panelGrid columns="2" style="width:100%">
						<h:panelGrid style="width:100%;text-align:left">
							<h:outputText style="font-size:25px" value="INFORMACOES DO LOTE" />
						</h:panelGrid>
					</h:panelGrid>
				</f:facet>
			
				<h:panelGrid columns="2">
					<h:outputText value="Nome: " />
					<p:inputText value="#{loteBeanSession.loteSelecionado.nome}" />
					<h:outputText value="Descricao: " />
					<p:inputTextarea value="#{loteBeanSession.loteSelecionado.descricao}" />
					<h:outputText value="Unidade-Lance: " />
					<p:selectOneMenu value="#{loteBeanSession.loteSelecionado.unidade}"
						converter="simpleConverter">
						<f:selectItems value="#{loteBeanSession.unidadeLanceList}" />
					</p:selectOneMenu>
					<h:outputText value="Licitacao (Edital): " />
					<p:selectOneMenu value="#{loteBeanSession.loteSelecionado.licitacao}"
						converter="simpleConverter">
						<f:selectItems value="#{loteBeanSession.licitacaoList}" />
					</p:selectOneMenu>
					<h:outputText value="Sequencia: " />
					<p:inputText value="#{loteBeanSession.loteSelecionado.sequencia}" />
					<h:outputText value="Valor Minimo: " />
					<p:inputText value="#{loteBeanSession.loteSelecionado.valorMinimo}" />
					<h:outputText value="Diferenca valor: " />
					<p:inputText value="#{loteBeanSession.loteSelecionado.diferencaValor}" />
					<h:outputText value="Envio Anexo ?: " />
					<p:selectBooleanButton onLabel="SIM" offLabel="NAO" 
						value="#{loteBeanSession.loteSelecionado.envioAnexo}" />
					<h:outputText value="Situacao: " />
					<p:selectOneMenu value="#{loteBeanSession.loteSelecionado.situacao}"
						converter="simpleConverter">
						<f:selectItems value="#{loteBeanSession.situacaoList}" />
					</p:selectOneMenu>
				</h:panelGrid>
			</p:panel>
			
			
			<p:panel style="width:100%;text-align:right;border-width:0">
				<p:commandButton value="LISTAR LOTES"
					action="#{loteBeanSession.init}" />
				<p:spacer width="10" height="0" />
				<p:commandButton value="SALVAR INFORMACOES"
					action="#{loteBeanSession.salvarLote}" />
			</p:panel>
		
	</ui:define>

</ui:composition>